package com.itlong.cloud.operate.dao;

import com.itlong.cloud.POJO.VO.operate.OperateBankCardVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <desc>
 *      运营-银联管理数据访问接口
 * </desc>
 *
 * @createDate 2018/09/25
 */
@Repository
@Mapper
public interface IOperateBankCardManageDao {
    /**
     * <desc>
     *      审核获取详情
     * </desc>
     *
     * @param bankCardId
     * @param projectId
     * @return
     * @author Jiaqi.X
     * @createDate 2018/09/25
     */
    OperateBankCardVO getCardInfo(@Param("bankCardId") String bankCardId);

    /**
     * <desc>
     *      提交审核
     * </desc>
     *
     * @param bankCardId
     * @param checkStatus
     * @param remark
     * @return
     * @author Jiaqi.X
     * @createDate 2018/09/25
     */
    Integer checkSubmit(@Param("bankCardId") String bankCardId,
                        @Param("checkStatus")Integer checkStatus,
                        @Param("remark")String remark,
                        @Param("approver") String approver);

    /**
     * <desc>
     *      获取分页列表
     * </desc>
     *
     * @param params
     * @return
     * @author Jiaqi.X
     * @createDate 2018/09/26
     */
    List<OperateBankCardVO> getPage(Map<String,Object> params);

    /**
     * <desc>
     *      获取分页列表总条数
     * </desc>
     *
     * @param params
     * @return
     * @author Jiaqi.X
     * @createDate 2018/09/26
     */
    Integer getPageCount(Map<String,Object> params);
}
